#include<bits/stdc++.h>
using namespace std;
int n,r[100010];
int main(){
    freopen("duel.in","r",stdin);
    freopen("duel.out","w",stdout);
    cin>>n;
    for(int i=1;i<=n;i++)cin>>r[i];
    int ans=n;
    sort(r+1,r+1+n);
    int i=1,j=2;
    while(i<=j&&j<=n){

        while(r[j]<=r[i]&&j<=n)j++;
        if(r[j]>r[i]){
            i++;
            j++;
            ans--;
        }
    }
    cout<<ans<<endl;
    return 0;
}
